

WindButtonModel = function() {
}

WindButtonModel.prototype.getTitle = function() {
	return this.title;
}

WindButtonModel.prototype.setTitle = function(title) {
	this.title = title;
}

WindButtonModel.prototype.getActive = function() {
	return this.active;
}

WindButtonModel.prototype.setActive = function(active) {
	this.active = active;
}

var WindButton = new Object;

WindButton.createModel = function() {
	var buttonModel = new WindButtonModel();
	return buttonModel;
}

WindButton.createView = function(buttonModel) {

	var buttonView = new WindView;
	buttonView.setCssClass("WindButton");
	
	var linkView = WindLink.createViewFromIdText(null, buttonModel.getTitle());

	buttonView.onClick = buttonModel.onClick;
	
	buttonView.addView(linkView);

	return buttonView;
}